import { defineConfig } from '@umijs/max';
import proxy from './proxy';
import { ConfigProvider } from 'antd';
const { UMI_ENV } = process.env;

export default defineConfig({
  npmClient: 'yarn',
  mfsu: {},
  fastRefresh: true,
  base: '/',
  hash: true,
  history: { type: 'hash' },
  access: {},
 
  locale: {
    default: 'zh-CN',
    baseSeparator: '-',
  },
  model: {},
  antd: {
    import: true,
    configProvider: {
     
    },
  },
  proxy: proxy[UMI_ENV || 'dev'],
  alias: {
    '@/components': '/src/components',
    '@': '/src',
    public: '/public',
  },
  routes:[ {
    path: "/login",
    component: "@/pages/login/index",
  },
  {
    path: "/",
    redirect:'/admin',
  },
  {
    path: "/*",
    component: "@/layouts/admin",
  },],
});
